package com.only.test;

import com.onlyxiahui.app.context.AppContext;
import com.onlyxiahui.app.context.ObjectFactory;

/**
 * @author XiaHui
 * @date 2017-12-27 10:16:47
 */
public class ConcurrentHashMapTest2 {

	public static void main(String[] arg) {
		final AppContext ac = new AppContext();
		final ObjectFactory objectFactory = new ObjectFactory(ac);
		long time = System.currentTimeMillis();
		for (int i = 0; i < 1000000; i++) {
			objectFactory.getObject(i + "", UserDataBox.class);
		}
		System.out.println(System.currentTimeMillis() - time);
	}
}
